demos/gtk-demo/main.c (setup_default_icon): Use a shaped
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 14 Sep 2001 21:24:57 +0000 (21:24 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 14 Sep 2001 21:24:57 +0000 (21:24 +0000)
icon instead of one with ugly white background.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/main.c

index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index f11b91c9e827d12bb7df63d9742fc4f73c1ae807..4ab2e19dad72bae26ba4296baae1757218334f1d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
+       icon instead of one with ugly white background.
+
 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * demos/gtk-demo/stock_browser.c (id_to_macro): make
index 954795e2399c941f680b340341e6209c4bcc259b..00fabe74aff3169db0596face2d0cb9a7b3de861 100644 (file)
@@ -765,12 +765,17 @@ setup_default_icon (void)
   if (pixbuf)
     {
       GList *list;      
+      GdkPixbuf *transparent;
+
+      /* The gtk-logo-rgb icon has a white background, make it transparent */
+      transparent = gdk_pixbuf_add_alpha (pixbuf, TRUE, 0xff, 0xff, 0xff);
 
       list = NULL;
-      list = g_list_append (list, pixbuf);
+      list = g_list_append (list, transparent);
       gtk_window_set_default_icon_list (list);
       g_list_free (list);
       g_object_unref (G_OBJECT (pixbuf));
+      g_object_unref (G_OBJECT (transparent));
     }
 }